<?php

namespace App\Transformers;
use App\Models\SysDistrict;

class DistrictTransformer  extends BaseTransformer
{
    public function transform(SysDistrict $model)
    {
        return [
            'id' => $model->id,
            'name' => $model->name,
            'city_id' => $model->city_id,
            'post_code' => $model->post_code,
        ];
    }
}
